package com.niit.mapper;

import com.niit.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    @Select("select * from user where userId=#{userId}")
    User getById(String userId);

    @Insert("insert into user(userId,userPwd,userHobbies) values(#{userId},#{userPwd},#{userHobbies})")
    int save(User user);
}
